<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
  xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
  layout:decorator="v2/layout">
  <head>
  	<script>
  	$(function() {
  		setMenu("评委管理");
  		
  		var id = getParam("id");
  		$.setData({id:id});
  		$("#page").page({url:"list-detailJuryList",data:{evaluateId:id},success:function(obj){
  			$.each(obj.obj.content, function(i,v){
  				v.createdAt = new Date(v.createdAt).Format("yyyy.MM.dd");
  			});
  			$.setData(obj.obj);
  		}});
  		
  	});
  		
  	</script>
  </head>
  <body>
	<div layout:fragment="content">
         	
       	<div class="info info-full">
    		<div class="stat">
	            <div class="stat-top">
	                <span class="stat-title"><strong>关键数据</strong></span>
	            </div>
	            <div class="stat-content">
	            	<div class="stat-row" id="statCount">
		                <div class="stat-group active">
		                    <div class="stat-group-title">评委人数</div>
		                    <div class="stat-group-count"><strong th:text="${number.count}">#{bmCount}#</strong></div>
		                </div>
		                <div class="stat-group">
		                    <div class="stat-group-title">评委点评数</div>
		                    <div class="stat-group-count"><strong th:text="${number.CommentNumber}">#{successCount}#</strong></div>
		                </div>
		                <div class="stat-group">
		                    <div class="stat-group-title">评委打分数</div>
		                    <div class="stat-group-count"><strong th:text="${number.ScoreNumber}">#{passCount}#</strong></div>
		                </div>
	                </div>
	            </div>
	
	        </div>
    	</div>
       	
		<div class="info info-full">
			
			<div class="detail-table">
      				<h4 class="detail-table-title">
					详细数据
					<span class="detail-table-more">
						<a data-wyx-href="list-detailJuryExportExecl?id={id}"><i class="icon_export"></i>导出CSV</a>
					</span>
				</h4>
			    <div class="table_list">
			    	<div class="table-overflow">
	                   <table class="table">
	                       <thead>
	                           <tr>
	                           	<th class="order desc" data="asc" onclick="$('#page').pageReload({sort:'teacherId,'+$(this).attr('data')});">评委姓名</th>
	                            <th class="order desc" data="asc" onclick="$('#page').pageReload({sort:'teacherId,'+$(this).attr('data')});">ID</th>
	                            <th class="order desc" data="asc" onclick="$('#page').pageReload({sort:'weight,'+$(this).attr('data')});">排序</th>
	                            <th class="order desc" data="asc" onclick="$('#page').pageReload({sort:'createdAt,'+$(this).attr('data')});">添加时间</th>
	                           <!--  <th class="order desc" onclick="$('#page').pageReload({orderType:'dp'});">点评数</th> -->
	                            <th>点评条数</th>
	                            <th>点评帖数</th>
	                            <th>打分数</th>
	                            <th>备注</th>
	                           </tr>
	                       </thead>
	                       <tbody>
								<tr data-wyx-for="{data : content}">
									<td data-wyx-text="{data.name}"></td>
									<td data-wyx-text="{data.teacherId}">#{data.teacherId}#</td>
									<td data-wyx-text="{data.weight}">#{data.weight}#</td>
									<td data-wyx-text="{data.createdAt}">#{data.createdAt}#</td>
									<td data-wyx-text="{data.commentNumber}">#{data.commentNumber}#</td>
									<td data-wyx-text="{data.postNumber}">#{data.postNumber}#</td>
									<td data-wyx-text="{data.scoreNumber}">#{data.scoreNumber}#</td>
									<td data-wyx-text="{data.remarks}">#{data.remarks}#</td>
								</tr>
	                     </tbody>
	                 </table>
	                 <div id="page"></div>
	          	</div>
	          </div>
          </div>
			
    	</div>
       			
          
	
	</div>
  </body>
</html>